package org.joy.db2;

import java.util.Arrays;

public class DocHit {
    private int URLID;
    private Integer[] pos;
    private float score;

    public DocHit(IndexEntry e) {
	this.URLID = e.getURLID();
	this.pos = e.getPos().toArray(new Integer[0]);
	this.score = e.getScore();
    }

    public int getURLID() {
	return URLID;
    }

    public Integer[] getPos() {
	return pos;
    }

    public float getScore() {
	return score;
    }

    @Override
    public String toString() {
	return "Hit [URLID=" + URLID + ", pos=" + Arrays.toString(pos)
		+ ", score=" + score + "]";
    }
}
